<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>忘记密码 - 在线考试系统</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <h1 class="text-center">忘记密码</h1>
        <form action="/forgot_password" method="POST">
            <label for="user_type" class="form-label">选择身份:</label>
            <select class="form-control" name="user_type" id="user_type" required>
                <option value="" disabled selected>请选择身份</option>
                <option value="teacher">老师</option>
                <option value="student">学生</option>
                <option value="parent">家长</option>
            </select>
            <label for="username" class="form-label">用户名:</label>
            <input type="text" id="username" name="username" class="form-control" placeholder="请输入您的用户名" required>
            <label for="new_password" class="form-label">新密码:</label>
            <input type="password" id="new_password" name="new_password" class="form-control" placeholder="请输入新密码" required>
            <button type="submit" class="btn">重置密码</button>
        </form>
    </div>
</body>
</html>
